package com.cn.wanxi.dao;

import com.cn.wanxi.model.UserModel;

import java.util.List;

public interface UserDao {
    UserModel findByUsername(String username);

    int add(UserModel userModel);

    UserModel findByUsernameAndPassword(UserModel userModel);

    List<UserModel> findAll();
    List<UserModel> findAll(UserModel userModel);

    UserModel findById(int id);

    int update(UserModel userModel);

    UserModel judgePassword(UserModel userModel);

    int del(int id);
}
